/*
 * EasyBounceGameContainer.h
 *
 *  Created on: 2009-3-14
 *      Author: Wayne
 */

#ifndef EASYBOUNCEGAMECONTAINER_H_
#define EASYBOUNCEGAMECONTAINER_H_

// INCLUDES
#include <coecntrl.h>
#include <aknlists.h>
#include "coedef.h"

/**
*  container control class.
*  
*/
class CEasyBounceGameContainer : public CCoeControl, MCoeControlObserver
    {
    public: // Constructors and destructor
        
        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CEasyBounceGameContainer();
        
        /*!
          @function OfferKeyEventL

          @discussion Handles key events.
          @param aKeyEvent The key event.
          @param aType The type of key event: EEventKey, EEventKeyUp or EEventKeyDown.
          @result Indicates whether or not the key event was used by this control.
          */
         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

    private: // Functions from base classes

       /**
        * From CoeControl,SizeChanged.
        */
        void SizeChanged();

       /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

       /**
        * From CCoeControl,ComponentControl.
        */
        CCoeControl* ComponentControl(TInt aIndex) const;

       /**
        * From CCoeControl,Draw.
        */
        void Draw(const TRect& aRect) const;

       /**
        * From CCoeControl, HandleControlEventL.
        */
        // event handling section
        // e.g Listbox events
        void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
        
       /**
        * From CCoeContro, HandlePointerEventL
        */
        void HandlePointerEventL(const TPointerEvent& aPointerEvent);

    private: //data
    	CEikLabel* iLabel;

    };

#endif /* EASYBOUNCEGAMECONTAINER_H_ */
